package com.sz.businessrecommend.bmo.impl;

import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.sz.businessrecommend.bmo.IBusinessRecommendBMO;
import com.sz.businessrecommend.dao.IBusinessRecommendDAO;

public class BusinessRecommendBMO implements IBusinessRecommendBMO{
	
	protected final Log logger = LogFactory.getLog(getClass());
	
	protected IBusinessRecommendDAO BusinessRecommendDAO = null;

	public IBusinessRecommendDAO getBusinessRecommendDAO() {
		return BusinessRecommendDAO;
	}

	public void setBusinessRecommendDAO(IBusinessRecommendDAO BusinessRecommendDAO) {
		this.BusinessRecommendDAO = BusinessRecommendDAO;
	}

	
	@SuppressWarnings("unchecked")
	/**
	 * �ɽ��ܵ�������
	 * TICKET_ID STATUS CUST_TEL CUST_NAME BUSINESS_ID REGION CREATE_MANAGER LOCK_MANAGER
	 */
	public List queryBusiness(Map map) throws Exception {
		return BusinessRecommendDAO.queryBusiness(map);
	}
	
	@SuppressWarnings("unchecked")
	public long queryBusinessCount(Map map) throws Exception {
		return BusinessRecommendDAO.queryBusinessCount(map);
	}
	
	@SuppressWarnings("unchecked")
	public List queryBusinessPage(Map map) throws Exception {
		return BusinessRecommendDAO.queryBusinessPage(map);
	}
	

	public List queryRecommend(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommend(map);
	}
	
	@SuppressWarnings("unchecked")
	public long queryRecommendCount(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommendCount(map);
	}
	
	@SuppressWarnings("unchecked")
	public List queryRecommendPage(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommendPage(map);
	}
	
	public List queryRecommendAs(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommendAs(map);
	}
	
	@SuppressWarnings("unchecked")
	public long queryRecommendCountAs(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommendCountAs(map);
	}
	
	@SuppressWarnings("unchecked")
	public List queryRecommendPageAs(Map map) throws Exception {
		return BusinessRecommendDAO.queryRecommendPageAs(map);
	}
	
	@SuppressWarnings("unchecked")
	public long addRecommend(Map map) throws Exception{
		return BusinessRecommendDAO.addRecommend(map);
	}
	
	@SuppressWarnings("unchecked")
	public long delRecommend(Map map) throws Exception{
		return BusinessRecommendDAO.delRecommend(map);
	}

}
